package cn.zbmao.web.services;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: huangzheng
 * Date: 2014/11/4
 * Time: 9:37
 * To change this template use File | Settings | File Templates.
 */
public interface SuccessfulServices {

    /**
     *
     * 返回用户关心的前十个中标单位
     * @param userId 用户id
     * @param num 数量
     * @param orderBy 排序
     *
     * @return   [{"公司名称"：{"数量":"int","金额":"double"}}]
     */
    List<Map<String,Object>> getSuccessfulForUser(int userId, int num, int orderBy);

    /**
     * 获取所有付费用户，根据用户关注的信息，更新他的中标数据
     */
    void putSuccessfulForUser();

}
